Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: points for setting bomb mod?

  1. #1

    Default points for setting bomb mod?

    hey guys is there a mod so u get points for setting a bomb in v2 or the bridge?

  2. #2
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    Yea they exist out there, and it depends on how you want to do it.

    It all involves adding 1 line to global/libmef/bomb.scr.
    The line is
    local.player addkills 1

    If you want to only get a point for planting a bomb, add it to the bomb_set_event local.bomb local.player: thread.
    OR
    If you want to only get a point for defusing a bomb, add it to the bomb_defuse_event local.bomb local.player: thread.
    OR
    if you wish for the player to get a point for defusing AND planting, then add the line to the bomb_message local.bomb local.action local.player:


    NOTE:: While you are editing bomb.scr, my advice is to update the bomb_message thread to get the players name using reborn command netname.
    Change
    local.name = waitthread global/libmef/util.scr::get_player_name local.player
    TO
    local.name = netname local.player

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  3. #3

    Default

    cool thanks will do right away, what does the last part do?

  4. #4

    Default

    Code:
    bomb_message local.bomb local.action local.player:
    	local.name = waitthread global/libmef/util.scr::get_player_name local.player
    	if (local.name != NIL)
    	{
    		local.str = level.mef_team[local.player.dmteam].desc + " player (" + local.name + ") "
    
    		if (level.mef_settings["logevents"])
    		{
    			if (local.action == "planted")
    			local.player addkills 1
    			{
    				local.logstring = "PLANT"
    			} else
    			{
    				local.logstring = "DEFUSE"
    			}
    			
    			println ("MEF " + local.logstring + " " + local.player.dmteam + " " + (waitthread global/libmef/util.scr::escape_string local.name " " "&"))
    		}
    	} else
    	{
    		if (local.team == "allies")
    		{
    			local.str = "The Allies have "
    		} else
    		{
    			local.str = "The Axis have "
    		}
    	}
    
    	local.str += (local.action + " a Bomb!")
    	
    	if (local.bomb.desc != NIL)
    	{
    		local.str += (" [" + local.bomb.desc + "]")
    	}
    
    	local iprintlnbold_noloc local.str
    end
    liek this?

    EDIT:!!!!!!!!!!!!! found it!!!

    Code:
    bomb_message local.bomb local.action local.player:
    	local.name = waitthread global/libmef/util.scr::get_player_name local.player
    	if (local.name != NIL)
    	{
    		local.str = level.mef_team[local.player.dmteam].desc + " player (" + local.name + ") "
    		
    
    		if (level.mef_settings["logevents"])
    		{
    			if (local.action == "planted")
    			
    			{
    				local.logstring = "PLANT"
    			} else
    			{
    				local.logstring = "DEFUSE"
    			}
    			
    			println ("MEF " + local.logstring + " " + local.player.dmteam + " " + (waitthread global/libmef/util.scr::escape_string local.name " " "&"))
    		}
    	} else
    	{
    		if (local.player.dmteam == "allies")
    		{
    			local.str = "The Allies have "
    			
    		} else
    		{
    			local.str = "The Axis have "
    		}
    	}
    
    	local.str += (local.action + " a Bomb!")
    	
    	if (local.bomb.desc != NIL)
    	{
    		local.str += (" [" + local.bomb.desc + "]")
    	}
    
    	local iprintlnbold_noloc local.str
    	local.player addkills 1
    end
    thanks purps!
    Last edited by Slimbips {sfx}; July 18th, 2017 at 06:07 AM.

  5. #5

    Default

    Quote Originally Posted by Purple Elephant1au View Post
    Yea they exist out there, and it depends on how you want to do it.

    It all involves adding 1 line to global/libmef/bomb.scr.
    The line is
    local.player addkills 1

    If you want to only get a point for planting a bomb, add it to the bomb_set_event local.bomb local.player: thread.
    OR
    If you want to only get a point for defusing a bomb, add it to the bomb_defuse_event local.bomb local.player: thread.
    OR
    if you wish for the player to get a point for defusing AND planting, then add the line to the bomb_message local.bomb local.action local.player:


    NOTE:: While you are editing bomb.scr, my advice is to update the bomb_message thread to get the players name using reborn command netname.
    Change
    local.name = waitthread global/libmef/util.scr::get_player_name local.player
    TO
    local.name = netname local.player
    lol i just wanted to ask if u could change so it shows the name of the bomb placer , u where 1 step in front... thanks!

  6. #6

    Default

    than u also have the script where peoples name display when they get frozen en unfrozen?

  7. #7
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    They are cvars within mefy mod. Look at the readme included with the mod

    g_ft_settings "frozenmsg:name;meltmsg:name" something like that, have to look it up

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  8. #8

    Default

    Code:
    * "frozenmsg" Default: "loc name bodycodes"
        This setting controls the announcements when a player is frozen. It
        accepts the following options:
          "loc"       -- Announce the location of the body when a player is
                         frozen.
          "name"      -- Announce the name of the player who was frozen.
          "force"     -- Announce when a player is frozen even if no location
                         or name is available.
          "bodycodes" -- Display all of the frozen body locations in abbreviated
                         format on the HUD in the lower left corner of the screen.
          "none"      -- Set this to "none" to disable all froze

  9. #9

    Default

    Code:
    set g_ft_settings "meltgun: on"
    set g_ft_settings "melttime: 1"
    set g_ft_settings "frozenmsg: name"
    set g_ft_settings "meltmsg: name"
    or
    set g_f_settings "meltgun: on melttime: 1 frozenmsg: name meltmsg: name"
    that doesnt work
    Last edited by Slimbips {sfx}; July 18th, 2017 at 08:30 AM.

  10. #10

    Default

    set g_ft_settings "meltgun: on frozenmsg: loc name force meltmsg: privmsg melttime: 30"

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •